package gatewayservice.gatewayservice.mapper;

import gatewayservice.gatewayservice.UserDto;
import gatewayservice.gatewayservice.po.User;
import org.apache.ibatis.annotations.*;
import org.springframework.web.bind.annotation.RequestBody;

@Mapper
public interface UserMapper {

    @Select("select * from users where username=#{username} and password=#{password}")
    User login(@RequestBody UserDto userDto);
}
